<?php
/* @var $this MerchantAdminController */
/* @var $model Merchant */

$this->breadcrumbs=array(
	'Merchants'=>array('index'),
	$model->merchant_id,
);

$this->menu=array(
	array('label'=>'Thêm đại lý', 'url'=>array('create')),
	array('label'=>'Sửa', 'url'=>array('update', 'id'=>$model->merchant_id)),
	//array('label'=>'Xoá', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->merchant_id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Quản trị đại lý', 'url'=>array('admin')),
);
?>

<h1>Chi tiết đại lý (Mã: <?php echo $model->merchant_id; ?>)</h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'merchant_id',
		'merchant_name',
		'merchant_fullname',
        array(
            'name'=>'merchant_icon',
            'type'=>'raw',
            'value'=>CHtml::image($model->merchant_icon),
        ),
		'merchant_add',
        array(
            'name'=>'city_id',
            'type'=>'raw',
            'value'=>City::model()->getName($model->city_id),
        ),
		'merchant_mobile',
	),
)); ?>
